<?php
class ControllerModuleHouseBanners extends Controller
{
    public function index($setting)
    {
        $sets = $this->config->get('house_banner_images');
        if (!empty($sets)) {
            $sets = unserialize($sets);
        } else {
            $sets = array();
        }

        $this->data['images'] = $sets[$setting['setId']]['images'];

        $this->id = 'house_banners';

        $this->template = $this->config->get('config_template') . '/template/module/house_banner_images_home.tpl';
        $this->render();
    }
}
